package com.knowledge.business.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

/**
 * @author: zhaoyongke
 * @create: 2025-09-09 12:35
 * @description: Memory
 */
@AiService(wiringMode = AiServiceWiringMode.EXPLICIT, chatModel = "openAiChatModel")
public interface SeparateMemoryChatAssistant {


    //    @SystemMessage("你是我的好朋友，请用东北话回答问题。今天是{{current_date}}。")
    @SystemMessage(fromResource = "my-prompt-template.txt")
    String chat(@MemoryId int memoryId, @UserMessage String userMassage);

    @SystemMessage(fromResource = "my-prompt-template.txt")
    String chat3(@MemoryId int memoryId, @UserMessage String userMassage, @V("username") String username, @V("age") int age);
}
